import { http } from '@/utils/http'

/**
 * 资产-年检-详情
 */
export const getInspectDetail = (y: { id: any }) => {
  return http({
    method: 'POST',
    url: '/V5/inspection/detail',
    data: y,
  })
}

/**
 * 资产-年检-新增/修改
 */
export const addOrEditCarInspect = (y: { id: any }) => {
  return http({
    method: 'POST',
    url: '/V5/inspection/save',
    data: y,
  })
}

/** 删除年检单 */
export const deleteInspect = (y: { id: any }) => {
  return http({
    method: 'POST',
    url: '/V5/inspection/remove',
    data: y,
  })
}

/**
 * 获取车辆违章记录
 */
export const getCarViolationAPI = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/violation/getList',
    data,
  })
}
